﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Entity
{
    public class WorkflowType : EntityBase
    {
        [Display(Name = "流程类型名称")]
        public string Name { get; set; }
    }

    public class Workflow : EntityBase
    {
         [Display(Name = "流程名称")]
         public string Name { get; set; }

        [Display(Name = "流程时长")]
         TimeSpan Duration { get; set; }

        [Display(Name = "适用公司")]
        public virtual List<Company> Companys { get; set; }

        public virtual List<Field> Fields { get; set; }

        public virtual WorkflowType WorkflowType { get; set; }

         [Display(Name = "流程类型名称")]
        public int? WorkflowTypeID { get; set; }
    }
}